package cn.hd.commonService.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author hd
 * @since 2022-06-26
 */
@Getter
@Setter
@TableName("sys_user")
@ApiModel(value = "SysUser对象", description = "")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "recordId", type = IdType.AUTO)
    private Integer recordId;

    @ApiModelProperty("账号")
    private String account;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("昵称")
    @TableField(value = "nickName")
    private String nickName;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("电话")
    private String phone;

    @ApiModelProperty("qq")
    private String qq;

    @ApiModelProperty("学历")
    private String education;

    @ApiModelProperty("出生日期")
    private String birthday;

    @ApiModelProperty("身份证号")
    @TableField(value = "cardNum")
    private String cardNum;

    @ApiModelProperty("出生地")
    private String location;

    @ApiModelProperty("是否启用")
    private Integer enable = 1;

    @ApiModelProperty("删除标记")
    @TableLogic
    private Integer deleted;
    @TableField(value = "orderNo")//排序号
    private Integer orderNo;
    @TableField(value = "photo")//头像
    private String photo;

    public SysUser() {
    }

    public SysUser(String account, String password, String email) {
        this.account = account;
        this.password = password;
        this.email = email;
    }

    public SysUser(String account, String password) {
        this.account = account;
        this.password = password;
    }
}
